Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

depfixer: change fix_darwin to act like fix_rpathtype_entry #13012

Merged
merged 1 commit into from
Apr 2, 2024
Merged

depfixer: change fix_darwin to act like fix_rpathtype_entry #13012

merged 1 commit into from
Apr 2, 2024

Conversation

grobian
Copy link
Contributor

@grobian grobian commented Mar 27, 2024

This somewhat aligns "darwin" (Mach-O) with how ELF RPATHs are treated. Instead of blindly removing all RPATHs, only remove the ones that are in the rpath_dirs_to_remove set. This way, RPATHs that were added by the toolchain or user are left untouched.

It is important not to remove RPATHs as they may be vital for the executable at runtime. Issues #12045 and #12288 are examples of this.

Fixes: #12045

@grobian grobian requested a review from jpakkane as a code owner March 27, 2024 17:25
gentoo-bot pushed a commit to gentoo/prefix that referenced this pull request Mar 27, 2024
Submitted upstream,
mesonbuild/meson#13012
in the meanwhile unbreak Darwin hosts.

Closes: https://bugs.gentoo.org/923706
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This somewhat aligns "darwin" (Mach-O) with how ELF RPATHs are treated.
Instead of blindly removing all RPATHs, only remove the ones that are in
the rpath_dirs_to_remove set.  This way, RPATHs that were added by the
toolchain or user are left untouched.

It is important not to remove RPATHs as they may be vital for the
executable at runtime.  Issues #12045 and #12288 are examples of this.

Issue: #12045
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
@eli-schwartz eli-schwartz merged commit 78e9009 into mesonbuild:master Apr 2, 2024
35 checks passed
@eli-schwartz eli-schwartz added this to the 1.4.1 milestone Apr 2, 2024
@eli-schwartz
Copy link
Member

Thanks for figuring this out (and apologies for the late merge. This has been on my plate to review all week, but some (happy!) IRL stuff interfered with finding the time to do so until now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LC_RPATH for external library is stripped from the installed binary
2 participants